var e = require("../../../@babel/runtime/helpers/defineProperty");

Component({
    properties: {
        datas: {
            type: null
        },
        component_id: {
            type: null
        },
        notShow: {
            type: null
        }
    },
    data: {
        emptyImage: "https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/image.png",
        activeNames: !0
    },
    lifetimes: {
        attached: function() {},
        moved: function() {},
        detached: function() {}
    },
    attached: function() {},
    ready: function() {},
    methods: {
        errorFunction: function(a) {
            var o = "datas.show_list[" + a.currentTarget.dataset.index + "].image";
            this.setData(e({}, o, "https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/image.png"));
        },
        pluginGoto: function(e) {
            var a = e.currentTarget.dataset.item, o = a.url;
            "extension" != a.url ? "courier" == a.name ? (wx.setStorage({
                key: "couriername",
                data: a.title
            }), wx.navigateTo({
                url: "/packageA/member/" + o + "/" + o
            })) : "helperLiveList" == a.url ? this.getTemplate() : wx.navigateTo({
                url: a.mini_url
            }) : this.goextension();
        },
        goaftersaleslist: function() {
            wx.navigateTo({
                url: "/packageD/member/myOrder/Aftersaleslist/Aftersaleslist"
            });
        },
        gocollection: function(e) {
            wx.navigateTo({
                url: "/packageD/member/collection/collection"
            });
        },
        gofootprint: function(e) {
            wx.navigateTo({
                url: "/packageD/member/footprint/footprint"
            });
        },
        gomyEvaluation: function(e) {
            wx.navigateTo({
                url: "/packageD/member/myEvaluation/myEvaluation"
            });
        },
        gomyRelationship: function(e) {
            wx.navigateTo({
                url: "/packageD/member/myRelationship/myRelationship"
            });
        },
        goaddress: function(e) {
            wx.navigateTo({
                url: "/packageD/member/addressList/addressList"
            });
        },
        gocoupon: function(e) {
            wx.navigateTo({
                url: "/packageA/member/coupon_v2/coupon_v2"
            });
        },
        goinfo: function(e) {
            wx.navigateTo({
                url: "/packageA/member/info/info"
            });
        },
        gosign: function() {
            wx.navigateTo({
                url: "/packageA/member/sign/sign"
            });
        },
        gocashier: function() {
            wx.navigateTo({
                url: "/packageC/cashier/cashier/cashier"
            });
        },
        gomicroShop_home: function() {
            wx.navigateTo({
                url: "/packageC/microshop/microShop_home/microShop_home"
            });
        },
        gomicroShop_apply: function() {
            wx.navigateTo({
                url: "/packageC/microshop/microShop_apply/microShop_apply"
            });
        },
        gooverseas_index: function() {
            wx.navigateTo({
                url: "/packageB/member/overseas_index/overseas_index"
            });
        },
        gostoreManage: function() {
            wx.navigateTo({
                url: "/packageC/o2o/storeManage/storeManage"
            });
        },
        gohelpcenter: function() {
            wx.navigateTo({
                url: "/packageB/member/helpcenter/helpcenter"
            });
        },
        goFrozenCoin: function() {
            wx.navigateTo({
                url: "/packageB/member/FrozenCoin/FrozenCoin"
            });
        },
        golove_index: function() {
            wx.navigateTo({
                url: "/packageB/member/love/Love_index/Love_index"
            });
        },
        goextension: function() {
            wx.reLaunch({
                url: "/packageG/pages/member/extension/extension"
            });
        },
        onChange: function(e) {
            this.setData({
                activeNames: !this.data.activeNames
            });
        },
        gotoUrl: function(e) {
            var a = e.currentTarget.dataset.item.h5_link;
            try {
                wx.navigateTo({
                    url: a
                });
            } catch (e) {
                wx.showToast({
                    title: "链接设置错误",
                    icon: "none",
                    duration: 2e3
                });
            }
        }
    }
});